package com.itheima.a03mygenerics;

import java.util.ArrayList;

public class Test2 {
    public static void main(String[] args) {
        //测试泛型方法

        ArrayList<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);

        ListUtil.addAll(list,1,2,3);

        System.out.println(list);

        ListUtil.addAll1(list,1,2,3,4,5,6);

        System.out.println(list);


    }
}
